﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;
using StockTrader.BusinessService.DataContract;
using StockTrader.BusinessService.Config;
using StockTrader.BusinessService.Implementation;

namespace StockTrader.BusinessService.HostConsole
{
    class Program
    {
        private static ServiceHost myServiceHost = null;

        static void Main(string[] args)
        {
            myServiceHost = new ServiceHost(typeof(TradeService));
            myServiceHost.Open();
            Console.WriteLine("Service host started.");
            Console.ReadLine();
            if (myServiceHost != null)
                myServiceHost.Close();
        }
    }
}
